package com.example.order.event;

import org.springframework.context.ApplicationEvent;

import java.time.Clock;

public abstract class OrderEvent extends ApplicationEvent {
    private final String orderNo;

    public OrderEvent(Object source, String orderNo) {
        super(source);
        this.orderNo = orderNo;
    }

    public OrderEvent(Object source, Clock clock, String orderNo) {
        super(source, clock);
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }
}
